import request from '@/util/request';

//条件分页查询
export const listByPageService = (params) => {
    return request.get("/technician/listByPage", { params: { ...params } })
}

//通过id获取技师信息
export const getByIdService = (id) => {
    return request.get("/technician/getById?id=" + id)
}

//通过id进行修改
export const editByIdService = (technicianData) => {
    return request.put("/technician/edit", technicianData)
}

//新增技师
export const addService = (technicianData) => {
    return request.post("/technician/add", technicianData)
}

//根据id删除技师
export const deleteByIdService = (id) => {
    return request.delete("/technician/deleteById?id=" + id)
}